
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<html>
<head>
    <title>购物商城-登录</title>
    <style>
        *{
            margin: 0 auto;
            padding: 0;
            list-style: none;
        }
        .header-a {
            text-decoration: none;
            color: #CCCCCC;
        }
        .header-a:hover {
            color: black;
        }
        .header_li1 {
            float: left;
            line-height: 30px;
            margin-left: 24px;
            text-align: center;
        }
        .header_li1 a {
            text-decoration: none;
            color: #FFFFFF;
            font-size: 13px;
            border-right: #CCCCCC;
        }
        .header_li1 a:hover {
            color: #FFFF00;
        }
    </style>
</head>


<body>
<div style="height: 32px;width: 100%;background-color: #EFEFEF">
    <!--头页面的第一部分-->
    <div  style="width: 1000px;height: 32px;font-size: 12px;line-height: 32px;text-align: right">
        官方网站：<a href="http://gz.gec-edu.org/?gzbdgzbdyueqianpc23"> http://gz.gec-edu</a>
        [<a href='${pageContext.request.contextPath}/login.jsp'>登录</a>]
        [<a href="${pageContext.request.contextPath}/register.jsp">免费注册</a>]
        [<a href="${pageContext.request.contextPath}/shopCar.jsp">我的购物车</a>]
        [<a href="${pageContext.request.contextPath}/order2.jsp">我的订单</a>]
        [<a href="${pageContext.request.contextPath}/index.jsp">设置为首页</a>]
        [<a href="#">加入收藏</a>]
    </div>
    <!--头页面的第二部分-->
    <div  style="width: 1000px;height:110px ;position:relative">
        <img src="images/article/logo.gif">
        <img src="images/banner.gif" alt="" style="margin-top: 10px">

        <div style="position: absolute;right: 50px;top: 30px;font-size: 12px;">
            <div style="border: 1px solid #CCCCCC;width: 70px;height: 20px;line-height: 20px;text-align: center "><a
                    href="#" class="header-a">关于我们</a></div>
            <div style="margin-top: 10px;border: 1px solid #CCCCCC;width: 70px;height: 20px;line-height: 20px;text-align: center "><a
                    href="#" class="header-a">联系方式</a></div>

        </div>

    </div>
    <!--头页面的第三部分-->
    <div style="width: 100%;height: 30px;background-color: #CC3333">
        <div style="width: 1000px;height: 30px">
            <u1>
                <li class="header_li1"><a href="http://localhost:8080/${pageContext.request.contextPath}/indexServlet?type_code=0001">首页  </a></li>
                <li class="header_li1"><a href="http://localhost:8080/${pageContext.request.contextPath}/indexServlet?type_code=0001">护肤 </a></li>
                <li class="header_li1"><a href="http://localhost:8080/${pageContext.request.contextPath}/indexServlet?type_code=0002">彩妆  </a></li>
                <li class="header_li1"><a href="http://localhost:8080/${pageContext.request.contextPath}/indexServlet?type_code=0003">香氛  </a></li>
                <li class="header_li1"><a href="http://localhost:8080/${pageContext.request.contextPath}/indexServlet?type_code=0004">身体护理</a></li>
                <li class="header_li1"><a href="http://localhost:8080/${pageContext.request.contextPath}/indexServlet?type_code=0005">礼盒套装</a></li>
                <li class="header_li1"><a href="http://localhost:8080/${pageContext.request.contextPath}/indexServlet?type_code=0006">母婴专区</a></li>
                <li class="header_li1"><a href="http://localhost:8080/${pageContext.request.contextPath}/indexServlet?type_code=0007">男士专区</a></li>
                <li class="header_li1"><a href="http://localhost:8080/${pageContext.request.contextPath}/indexServlet?type_code=0008">粉底  </a></li>
                <li class="header_li1"><a href="http://localhost:8080/${pageContext.request.contextPath}/indexServlet?type_code=0009">粉饼  </a></li>
                <li class="header_li1"><a href="http://localhost:8080/${pageContext.request.contextPath}/indexServlet?type_code=0010">睫毛膏 </a></li>
                <li class="header_li1"><a href="http://localhost:8080/${pageContext.request.contextPath}/indexServlet?type_code=0011">唇彩  </a></li>
                <li class="header_li1"><a href="http://localhost:8080/${pageContext.request.contextPath}/indexServlet?type_code=0012">腮红  </a></li>
                <li class="header_li1"><a href="http://localhost:8080/${pageContext.request.contextPath}/indexServlet?type_code=0013">食品保健</a></li>
                <li class="header_li1"><a href="http://localhost:8080/${pageContext.request.contextPath}/indexServlet?type_code=0014">瘦身类 </a></li>
                <li class="header_li1"><a href="http://localhost:8080/${pageContext.request.contextPath}/indexServlet?type_code=0015">美容类 </a></li>
            </u1>

        </div>
    </div>
</div>
<div style="background-image: url('images/login_bg.jpg');width: 960px;height: 388px;position: relative;margin-top: 190px">

    <%--子绝父相--%>
    <div style="width: 400px;height: 300px;background-color: #FFFFFF;border-left:2px #E0E0DF solid;border-right:2px #E0E0DF solid;position: absolute;left: 500px;top: 70px">
<p style="text-align: right;margin-top:25px;margin-right: 30px;font-size: 11px;color: #CCCCCC ">还不是商城用户？&nbsp; &nbsp;<a href="register.jsp" style="text-decoration: none">立即注册</a></p>

        <table style="font-size: 15px;border-spacing:0px 28px">
            <tr>
                <td>登录名&nbsp;&nbsp;</td>
                <td><input type="text"style="font-size:10px;width:200px;height:23px" placeholder="请输入正确账号"></td>
            </tr>
            <tr>
                <td>密&nbsp;&nbsp;码&nbsp;&nbsp;</td>
                <td><input type="password" style="font-size:10px;width:200px;height:23px" placeholder="请输入6-16位的密码"></td>
            </tr>
            <tr>
                <td></td>
                <td><a href="${pageContext.request.contextPath}/index.jsp"style=" text-decoration:none;background-color: #FE901F;font-weight: bold;width: 80px;border-radius:3px;color:#FFFFFF;padding: 3px 18px 3px 18px;border: none">登&nbsp;&nbsp;录</a></td>
            </tr>
            <tr>
                <td colspan="2">
                    疯狂源自梦想，技术成就辉煌&nbsp;&nbsp;<a href="https://gzyq.ic37.com/">广州粤嵌</a>
                </td>

            </tr>
        </table>
    </div>
</div>
</body>
<%--引用jq包--%>
<script src="${pageContext.request.contextPath}/js/jquery-3.1.1.js"></script>
<script>
    $(function () {
        //获得session中的user的名字
        var userName ="${user.name}";
        //定义一个变量,用来表示span中的内容
        var text = "[<a href='/shop/login.jsp'>登录</a>]&nbsp;&nbsp;[<a href='/shop/register.jsp'>免费注册</a>]"
        if (userName != "") {
            text = userName ;
        }
        //修改loginspan的内容
        $("#loginspan").html(text);
    })
    <%--[<a href= '${pageContext . request. contextPath}/login. jsp'>登录</a>]
     [<a href= '#'>免费注册</a>]--%>

    //提交数据到详情页面
    //函数
    function submitID(id) {
        //要完成页面跳转
        location.href = "http://localhost:8080/shop/ArticleInfo.do?articleID="+id+"";
    }
</script>
</html>
